package com.example.cart.database;

import com.example.cart.entity.Product;

public class ProductData {

    public static final Product[] PRODUCTS = new Product[] {
            build("vivo X200 Pro", 5032.51, "vivo_x200pro.jpg", "vivo X200 Pro mini 16GB+512GB 微粉 国家补贴 6.31英寸纤薄小直屏 蔡司"),
            build("vivo iQOO Neo10", 2247.01, "iqoo_neo10.jpg", "vivo iQOO Neo10 现货销售【国家补贴】12GB+256GB 驰光白 第三代骁龙8"),
            build("荣耀X60", 1109.0, "honor_x60.jpg", "荣耀X60 十面抗摔防水耐磨 5800mAh大电池 一亿像素 AI影像 8+128"),
            build("OPPO Reno13", 3340.51, "oppo_reno13pro.jpg", "OPPO Reno13 12GB+256GB 心动白 超美小直屏 AI高清实况照片 IP69满级"),
            build("荣耀Magic6", 3481.51, "honor_magic6.jpg", "荣耀Magic6 单反级荣耀鹰眼相机 荣耀巨犀玻璃 第三代骁龙8 16+512 绒黑"),
            build("小米 Redmi Note13Pro", 755.01, "readme_note12.jpg", "小米 Redmi Note13Pro 国家补贴 骁龙7S 新2亿像素 第二代1.5K高光屏"),
            build("OPPO Find N5", 9999.0, "oppo_find_n5.jpg", "OPPO Find N5 16GB+512GB 缎黑 超薄机身 超长续航冰川电池 骁龙8至尊版"),
            build("小米15Ultra", 6999.0, "xiaomi_15_ultra.jpg", "小米（MI）小米15Ultra&SU7Ultra齐发布 徕卡2亿超级长焦 白色 16+512 小"),
            build("HUAWEI Pura 70", 4999.0, "huawei_pura_70.jpg", "HUAWEI Pura 70 国家补贴500元 12GB+512GB 羽砂黑 北斗卫星消息版"),
            build("苹果iphone16", 3481.51, "apple_iphone16.jpg", "Apple/苹果 iPhone 16 Pro Max（A3297）1TB 白色钛金属 支持移动联通"),
            build("戴尔（DELL）Optiplex 7010SFF", 4277.51, "dell_optiplex_7020mff.jpg", "戴尔（DELL）Optiplex 7010SFF商用办公台式机电脑(i5-12500 32G 512G固态+1T RX550-4G独显 定制)+23.8英寸")
    };

    public static Product build(String name, Double price, String picPath, String desc) {
        Product product = new Product();
        product.setName(name);
        product.setDesc(desc);
        product.setPrice(price);
        product.setPicPath(picPath);
        return product;
    }
}
